<?php


namespace app\admin\Validate\article;


use app\common\BaseValidate;

/**
 * 添加文章校验器
 * Class AddArticleValidate
 * @package app\admin\Validate\article
 */
class AddArticleValidate extends BaseValidate
{
    protected $rule = [
        "article_title" => "require",
        "article_image" => "length:1,100",
        "article_category" => "require|integer",
        "article_tag" => "require|length:1,100",
        "article_content" => "require",
        "article_status" => "in:0,1",
        "article_sticky" => "in:0,1",
        "article_originate" => "in:0,1",
        "article_consult" => "min:0",
        "article_synopsis" => "require",
    ];
}